package org.jeecg.glr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: LED屏管理
 * @Author: jeecg-boot
 * @Date: 2020-02-20
 * @Version: V1.0
 */
@Data
@TableName("glr_led")
public class GlrLed implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;

    private String materialCode;
    /**
     * 名称
     */
    @Excel(name = "名称", width = 15)
    private String name;
    /**
     * 编号
     */
    @Excel(name = "编号", width = 15)
    private String code;
    /**
     * 状态
     */
    @Excel(name = "状态", width = 15)
    private String status;
    /**
     * 开屏状态
     */
    @Excel(name = "开屏状态", width = 15)
    @Dict(dicCode = "sys_yn")
    private String openStatus;
    /**
     * 所属路灯灯杆编号
     */
    @Excel(name = "所属路灯灯杆编号", width = 15)
    private String lightPoleCode;


    /**
     * 项目编号
     */
    @Excel(name = "项目编号", width = 15)
    private String projectCode;

    /**
     * 网关编号
     */
    @Excel(name = "网关编号", width = 15)
    private String gataWayCode;
    /**
     * 宽
     */
    @Excel(name = "宽", width = 15)
    private String width;
    /**
     * 高
     */
    @Excel(name = "高", width = 15)
    private String height;
    /**
     * 亮度
     */
    @Excel(name = "亮度", width = 15)
    private Integer brightness;
    /**
     * 进度
     */
    @Excel(name = "进度", width = 15)
    private String progress;
    /**
     * 命令ID
     */
    @Excel(name = "命令ID", width = 15)
    private String commandId;
    /**
     * 创建人
     */
    @Excel(name = "创建人", width = 15)
    private String createBy;
    /**
     * 创建日期
     */
    @Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 更新人
     */
    @Excel(name = "更新人", width = 15)
    private String updateBy;
    /**
     * 更新日期
     */
    @Excel(name = "更新日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /**
     * 所属部门
     */
    @Excel(name = "所属部门", width = 15)
    private String sysOrgCode;
    @Excel(name = "所属公司", width = 15)
    private String sysCompanyCode;
    @TableField(exist = false)
    private String ids;

    @TableField(exist = false)
    private String codes;
    @TableField(exist = false)
    private Boolean disabledValue;//是否自动亮度
}
